package net.zrnecko.km.client;

import java.util.List;

import net.zrnecko.km.dto.PlayerDTO;
import net.zrnecko.km.dto.TournamentDTO;
import net.zrnecko.km.entity.Tournament;


import com.google.gwt.user.client.rpc.AsyncCallback;

public interface PersistenceServiceAsync {

	void getTournamentByTournamentId(int tournamentId,
			AsyncCallback<TournamentDTO> callback);

	void listTournaments(AsyncCallback<List<TournamentDTO>> callback);

	void persistTournament(TournamentDTO tournament,
			AsyncCallback<Void> callback);

	void persistPlayer(PlayerDTO player, AsyncCallback<Void> callback);

	void listPlayers(AsyncCallback<List<PlayerDTO>> callback);


}
